package com.jj.service.impl;

import com.jj.pojo.User;
import com.jj.service.DemoService001;
import com.jj.util.ThreadLocalContext;
import org.springframework.stereotype.Service;

@Service
public class DemoService001Impl implements DemoService001 {

    @Override
    public String doService001(String str) {
        System.out.println("doService001:" + Thread.currentThread().getId());


        User initUser = (User) ThreadLocalContext.get("initUser");
        System.out.println(initUser.toString());

        initUser.setUserName("张三1");

        System.out.println("doService001");
        return initUser.toString();

    }
}
